# $Id: PKGBUILD 154161 2012-03-23 20:15:46Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xvidtune
pkgver=1.0.3
pkgrel=3
pkgdesc="Video mode tuner for Xorg"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libxxf86vm' 'libxt' 'libxaw' 'libxmu' 'libx11')
makedepends=('xorg-util-macros')
source=("https://xorg.freedesktop.org/archive/individual/app/xvidtune-${pkgver}.tar.bz2")
sha512sums=('0f8a4fca1b544ef8f9623246fb0ece75739a0889f2e729c040cd768c595f0bbbfa3a665576369032535c34c7d55784a29b62f0d51432bf2b75d2cec619db7352')

build() {
  cd xvidtune-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd xvidtune-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
